package com.sgb.kjwl.view.ui.activity.self;

import androidx.databinding.DataBindingUtil;
import android.view.View;

import com.sgb.kjwl.AppActivity;
import com.sgb.kjwl.R;
import com.sgb.kjwl.databinding.ActivityAccountBinding;
import com.sgb.kjwl.di.self.DaggerSelfComponent;
import com.sgb.kjwl.di.self.SelfModule;
import com.sgb.kjwl.viewmodel.self.AccountModel;
import com.swgk.core.base.di.AppComponent;

import javax.inject.Inject;

/**
 * 我的账户
 */
public class AccountActivity extends AppActivity {

    @Inject
    AccountModel viewModel;
    private ActivityAccountBinding binding;

    @Override
    protected void setupActivityComponent(AppComponent appComponent) {
        DaggerSelfComponent.builder().appComponent(appComponent)
                .selfModule(new SelfModule(this)).build().inject(this);
    }

    @Override
    protected boolean statusBarDark() {
        return true;
    }

    @Override
    protected void initView() {
        binding = DataBindingUtil.setContentView(AccountActivity.this, R.layout.activity_account);
        binding.include.titleView.setText("我的账务");
        binding.include.ivBack.setOnClickListener(this);

    }


    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.iv_back:
                finish();
                break;

        }
    }
}
